package com.mediocre.dto;

import io.swagger.annotations.ApiModel;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

//@ApiModel(value = "HALO文章DTO", description = "HALO文章数据传输对象")
@ApiModel(description = "HALO文章数据传输对象")
@Data
public class PostHaloDTO implements Serializable {
    private static final long serialVersionUID = 1;

    private Long id;
    // 创建时间：CURRENT_TIMESTAMP(6)（默认值）
    private LocalDateTime createTime;
    // 是否被删除：0 （默认值）；1
    private Byte deleted;
    // 更新时间：CURRENT_TIMESTAMP(6)（默认值）
    private LocalDateTime updateTime;
    // Create from,server or WeChat.
    // 发布来源：0 管理后台（默认值）；1 微信
//    @Column(name = "create_from", columnDefinition = "int default 0")
    private Byte createFrom;
    // 禁止评论：0 允许评论（默认值）；1 禁止评论
    private Byte disallowComment;
    // 编辑时间：CURRENT_TIMESTAMP（默认值）
    private LocalDateTime editTime;
    // Rendered content. NOT NULL.
//    @Column(name = "format_content", columnDefinition = "text not null")
    private String formatContent;
    // Likes
//    @Column(name = "likes", columnDefinition = "bigint default 0")
    private Long likes;
    // Original content,not format.
//    @Column(name = "original_content", columnDefinition = "text not null")
    private String originalContent;
    // Post password.
//    @Column(name = "password", columnDefinition = "varchar(255) default ''")
    private String password;
    // Post status: 0 已发布；1 草稿（默认）；2 回收站；3 私密
//    @Column(name = "status", columnDefinition = "int default 1")
    private Byte status;
    // Post summary.
//    @Column(name = "summary", columnDefinition = "varchar(500) default ''")
    private String summary;
    // Custom template.
//    @Column(name = "template", columnDefinition = "varchar(255) default ''")
    private String template;
    // Cover thumbnail of the post.
//    @Column(name = "thumbnail", columnDefinition = "varchar(1023) default ''")
    private String thumbnail;
    // Post title.
//    @Column(name = "title", columnDefinition = "varchar(100) not null")
    private String title;
    // Whether to top the post.
//    @Column(name = "top_priority", columnDefinition = "int default 0")
    private Byte topPriority;
    // Post url
//    @Column(name = "url", columnDefinition = "varchar(255) not null", unique = true)
    private String url;
    // Post visits.
//    @Column(name = "visits", columnDefinition = "bigint default 0")
    private Long visits;
    // post分类的名字
    private String categoryName;


}
